<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>XMLHttpRequest</title>
</head>
<body>

    <script>
        let names;
        names = Object.getOwnPropertyNames( XMLHttpRequest );
        console.log('类属性:');
        names.forEach( name => console.log( '\t', name ) );

        names = Object.getOwnPropertyNames( XMLHttpRequest.prototype );
        console.log('原型属性:');
        names.forEach( name => console.log( '\t', name ) );

        const $http= new XMLHttpRequest();
        names = Object.getOwnPropertyNames($http);
        console.log('实例属性:');
        names.forEach( name => console.log( '\t', name ) );

    </script>

</body>
</html>